package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.entity.Employee;
import com.itheima.util.Result;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface IEmployeeService extends IService<Employee> {

    Result login( @RequestBody Employee employee);

    Result saveEmployee(Employee employee);

    Result findOne(Long id);

    Result updateOne(Employee employee);

    Result logout();

    IPage getPage(int current, int pageSize,String name);

}
